<?PHP
/**
*
* This function used to delete Client data.
*/
   include ("../../../Connections/SCMS.php");
   include ("../../../Model/databaseOperationClass.php");
   include ("../../../Model/errorReportClass.php");
   $errReport = new errorReportClass();
   $databaseOperation = new databaseOperationClass();
	$id = $_GET['id'];
	$reportTo = '../view/clientViewList.php';
	$success = $databaseOperation->deleteFromClient($id);
	if($success){
		 $errReport->errorReport(1, $reportTo);
       exit;
	}
	else{
	    $errReport->errorReport(2, $reportTo);
       exit;
	}
	
?>